--[[
    author:Lee
    time:2021-06-25
]]


local ngx = ngx;
local require = require;


if not ngx.cache then
	ngx.cache = {}
	package.path  = package.path .. ";lua/?.lua;"
	package.cpath = package.cpath .. ";lua/modules/commhm/resty/?.so;";
end


if  not ngx.cache.welfare_func then
    local uu      = require("modules.commhm.utils");
	uu.set_init_protect_mode()   ---加载期保护模式
	ngx.cache.welfare_func = require("modules.business_welfare.welfare_func");
	if  not ngx.cache.ns_time then
		ngx.cache.ns_time = require("modules.commhm.time");
	end
end
ngx.cache.ns_time.start();
ngx.cache.welfare_func.init_worker_by_lua_file();
ngx.cache.ns_time.print_cost_all();


